ci: Add a build that runs installed tests
authorMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 01:25:29 +0000 (21:25 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 03:24:36 +0000 (23:24 -0400)
This will hopefully prevent regressions in
installed-tests.

.gitlab-ci.yml

index 25b2fb9c75945a333a912657e0a40a279ed4e4d6..f1d1939a74462ee5d23930d9876432fd410b2bd8 100644 (file)
@@ -92,6 +92,27 @@ release-build:
     - ninja -C _build
     - .gitlab-ci/run-tests.sh _build x11
 
+installed-tests:
+  extends: .build-fedora-default
+  stage: build
+  needs: []
+  variables:
+    EXTRA_MESON_FLAGS: "--prefix=/usr --libdir=/usr/lib64 -Dinstall-tests=true"
+  script:
+    - meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} ${BACKEND_FLAGS} ${FEATURE_FLAGS}
+            _build
+    - ninja -C _build
+    - sudo ninja -C _build install
+    - dbus-run-session xvfb-run -a -s "-screen 0 1024x768x24"
+            gnome-desktop-testing-runner
+                   --report-directory=_build/installed-tests-report/failed/
+                   --parallel=0
+                   gtk-4.0
+  artifacts:
+    paths:
+      - "_build/installed-tests-report/"
+
+
 .mingw-defaults:
   stage: build
   tags: